package com.open.demo.livedata

import android.util.Log
import androidx.lifecycle.*

class PictureViewModel:ViewModel() {

    val pictureRepository:PictureRepository by lazy { PictureRepository() }

    val items by lazy { MutableLiveData<List<String>>() }

    fun loadData() {
        items.postValue(pictureRepository.getWifiList())
    }

}